package cn.tedu.mvc;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("car")
public class HelloController {
    @RequestMapping("show")
    public String show() {
        return "nihao zhangjianheng";
    }

    @RequestMapping("showCarInfo")
    public Car showCarInfo() {
        return new Car(11,"保时捷","911", "black",999.99);
    }
}
